package com.slicktechnologies.shared.common.helperlayer;

import java.io.Serializable;
import java.util.Date;

import com.googlecode.objectify.annotation.Embed;
import com.slicktechnologies.shared.common.personlayer.Employee;

/**
 * The Class PreviousCompanyHistory. Represents the {@link Employee} history in previous company.
 */
@Embed
public class PreviousCompanyHistory implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3673625705014591277L;
	String company, designation,adress;
	double salary;
	Date fromDate,toDate;
	
	public PreviousCompanyHistory()
	{
		company="";
		designation="";
		adress="";
		fromDate=new Date();
		toDate=new Date();
	}


	public String getCompany() {
		return company;
	}


	public void setCompany(String company) {
		this.company = company;
	}


	public String getDesignation() {
		return designation;
	}


	public void setDesignation(String designation) {
		this.designation = designation;
	}


	public double getSalary() {
		return salary;
	}


	public void setSalary(double salary) {
		this.salary = salary;
	}


	public String getAdress() {
		return adress;
	}


	public void setAdress(String adress) {
		this.adress = adress;
	}


	public Date getFromDate() {
		// TODO Auto-generated method stub
		return fromDate;
	}


	public Date getToDate() {
		// TODO Auto-generated method stub
		return toDate;
	}


	public void setFromDate(Date date) {
		if(date!=null)
			fromDate=date;
		
	}
	
	public void setToDate(Date date) {
		if(date!=null)
			toDate=date;
		
	}
	
	

}
